Hi, getCanvas() function to get the canvas DBE, to be able to set background color etc. The problems seem to occur when the text(Column c, Object o) is used. getCanvas
returns null after a call to the text function and messes up the DXL-layout. getCanvas()
is used to make it look like the original, see below. When I try to export this to Word (using the built-in function) the export crashes due to error in DXL.
sDisp = funcGetDiff(o, obj, "Object Heading")
iLevel = level(obj)
if ( iLevel > 9 )
{
iLevel = 9
}
font(getCanvas, iLevel, HeadingsFont)
if ( !null(plainText(sDisp)) )
{
displayRichWithColor(number(obj) " " sDisp)
}
sDisp = funcGetDiff(o, obj, "Object Text")
font(getCanvas, iLevel, TextFont)
displayRichWithColor(sDisp)
a_vestlin - Fri Dec 12 05:10:13 EST 2008 |
Re: Lost canvas reference Only solution I can see for now would be to not use the canvas. AAI Services, Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
Re: Lost canvas reference This SmartDXL script will only export if the font calls are commented out. Link: http://www.smartdxl.com/layout.html |
Re: Lost canvas reference SystemAdmin - Mon Mar 16 15:58:33 EDT 2009 /Anders |
Re: Lost canvas reference SystemAdmin - Mon Mar 16 15:58:33 EDT 2009 But note that you can get a working export from this kind of view if you use the Rich Text Format export to RTF file instead of the Word export. |
Re: Lost canvas reference SystemAdmin - Tue Mar 17 06:19:44 EDT 2009 |